<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="${moduleName}.dao.I${noPrefixClassName}Mapper">
    <resultMap id="${noPrefixClassName}Entity" type="${moduleName}.entity.${className}">
    <#list columns as c>
        <#if c?is_first>
            <id column="${c.columnName}" jdbcType="${c.javaType}" property="${c.fieldName}"/>
        <#else>
            <result column="${c.columnName}" jdbcType="${c.javaType}" property="${c.fieldName}" />
        </#if>
    </#list>
    </resultMap>
</mapper>


<#--xml 默认第一个字段是主键-->
